package com.byjh.app.dto;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class EditUserDto {
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotBlank(message = "用户名称不能为空")
    private String nickName;

    @NotBlank(message = "头像不能为空")
    private String avatar;

    @Email(message = "邮箱格式不正确")
    private String email;

    private String sex;

    private String phone;

}
